﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CH2_3
{
    class Program
    {
        
        static void Main(string[] args)
        {
            float EN = 0.0F, CH = 0.0F, Math = 0.0F, Avg = 0.0F;
            Console.WriteLine("请键入该学生成绩：");
            Console.Write("语文成绩=");
            CH = (float)Convert.ToDouble(Console.ReadLine());
            Console.Write("数学成绩=");
            Math = (float)Convert.ToDouble(Console.ReadLine());
            Console.Write("英语成绩=");
            EN=(float)Convert.ToDouble(Console.ReadLine());
            Avg = (CH + Math + EN) / 3.0F;
            Console.WriteLine("该生的成绩平均分为：{0}", Avg);
            Console.ReadLine();
        }
    }
}
